import {
	defineConfig
} from 'vite'
import uni from '@dcloudio/vite-plugin-uni'
import path from 'path'
// https://vitejs.dev/config/
export default defineConfig({
	plugins: [
		uni(),
	],
	css: {
		// CSS 预处理器
		preprocessorOptions: {
			// 定义全局 SCSS 变量
			scss: {
				api: 'modern-compiler',
				silenceDeprecations: ['legacy-js-api'],
			},
		},
	},
	resolve: {
		alias: {
			'@': path.resolve(__dirname, 'src')
		}
	}
})